#pragma once
#include "Point.h"
#include <vector>
namespace OpenDrive {
	class CubicLine
	{
		//三次样条拟合换道的轨迹
	public:
		CubicLine();
		CubicLine(const Point &start, const Point &end);
		~CubicLine();
		std::vector<Point> calPoints();
		Point& getStart();
		Point& getEnd();
		void setStart(const Point &start);
		void setEnd(const Point &end);

	private:
		
		void calPara(float te, std::vector<float>& px, std::vector<float>& py);
		Point start;
		Point end;
	};
	
}


